
function count(selector) {
	count = 0;
	$.each(selector, function() {count++;});
	return count;
}